<?php include_partial('default/header') ?>
<div id="all_content_wide">
    <div id="backoffice">
    <?php if ($sf_user->getPage()): ?>
      <div id="header_logo">
        <?php echo fb_image_tag('logo_vtns.png') ?>
      </div>
      <div class="clb"></div>
      <div class="relative pt1">
        <div class="tabs">
          <div class="left_tabs">
            <ul class="toggle_tabs">
              <li class="first"><?php echo tabbed_menu_item(__('Catalog'), '@backoffice_catalog', 'list') ?></li>
			  <li><?php echo tabbed_menu_item(__('Customers'), '@backoffice_customers', 'list') ?></li>
			  <li><?php echo tabbed_menu_item(__('Orders'), '@backoffice_orders', 'list') ?></li>
			  <li><?php echo tabbed_menu_item(__('Stats'), '@backoffice_stats', 'list') ?></li>
              <li><?php echo tabbed_menu_item(__('Employees'), '@backoffice_employees', 'list') ?></li>
              <li><?php echo tabbed_menu_item(__('Products'), '@backoffice_products', 'list') ?></li>
              <li><?php echo tabbed_menu_item(__('Preferences'), '@backoffice_settings', 'list') ?></li>
            </ul>
          </div>
          <div class="right_tabs">
            <ul class="toggle_tabs">
              <li class="first"><?php echo link_to(__('Go to Public Page'), $sf_user->getPage()->getCurrentTabUrl(), array(
                      'target' => '_top',
                      )) ?></li>
            </ul>
          </div>
          <div class="clb"></div>
        </div>
      </div>
    <?php endif ?>
	<?php
	// Breadcrumb
	?>
	<?php // echo sfBreadcrumbs::getInstance()->getBreadcrumbText() ?>
    <?php echo $sf_data->getRaw('sf_content') ?>
    </div>

    <?php include_partial('default/footer', array('public_page' => true)) ?>
    <?php if ($sf_request->getParameter('showStep5Tags')): ?>
      <script>
      <!--
        _gaq.push(['_trackEvent','install','step5','page_id','<?php echo $sf_user->getPageId()?>']);
        _gaq.push(['_trackPageview','<?php echo sfConfig::get('sf_facebook_app_url') ?>/install/step5?page_id=<?php echo $sf_user->getPageId()?>']);
      -->
      </script>
      <?php if (sfConfig::get('sf_environment') !== 'dev'): ?>
        <?php echo google_adwords_conversions_tag('step5') ?>
      <?php endif ?>
    <?php endif ?>
    <div class="clb"></div>
</div><?php /*end #all_content_wide */ ?>
  </body>
</html>